import request from '@/utils/request'

// 查询原材物料消耗-仰口列表
export function listAnalysis_consumption(query) {
  return request({
    url: '/productionProcess/analysis_consumption/list',
    method: 'get',
    params: query
  })
}

// 查询数据
export function getData(query) {
  return request({
    url: '/productionProcess/analysis_consumption/getData',
    method: 'get',
    params: query
  })
}

// 查询原材物料消耗-仰口详细
export function getAnalysis_consumption(id) {
  return request({
    url: '/productionProcess/analysis_consumption/' + id,
    method: 'get'
  })
}

// 新增原材物料消耗-仰口
export function addAnalysis_consumption(data) {
  return request({
    url: '/productionProcess/analysis_consumption',
    method: 'post',
    data: data
  })
}

// 修改原材物料消耗-仰口
export function updateAnalysis_consumption(data) {
  return request({
    url: '/productionProcess/analysis_consumption',
    method: 'put',
    data: data
  })
}

// 删除原材物料消耗-仰口
export function delAnalysis_consumption(id) {
  return request({
    url: '/productionProcess/analysis_consumption/' + id,
    method: 'delete'
  })
}



